var express = require('express');
var router = express.Router();

var {getUserInfo, articleLike, articleCollection, getCollection, articleTalk,changeUserInfo} = require('../controller/userNeedCheck')


// 获得资料
router.get('/info/:username', getUserInfo);
//修改用户资料
router.post('/changeInfo', changeUserInfo);

//文章点赞和踩
router.get('/like/:id/:like', articleLike)
//文章收藏
router.get('/save/:id', articleCollection)
//收藏列表获取
router.get('/saveList', getCollection)
//添加文章评论
router.post('/article/talk', articleTalk)

module.exports = router;